local keymap = vim.keymap
keymap.set('n', '<leader>m', '<cmd>TSToolsOrganizeImports<cr>')
keymap.set('n', '<leader>a', '<cmd>TSToolsAddMissingImports<cr>')

local api = require 'typescript-tools.api'
require('typescript-tools').setup {
  handlers = {
    ['textDocument/publishDiagnostics'] = api.filter_diagnostics { 6133 },
  },
  settings = {
    tsserver_file_preferences = {
      importModuleSpecifierPreference = 'non-relative',
    },
  },
}
